Err: Module 'templates' is not exists!
- /www/wwwroot/zyterpharm.com/include/core.php on line 245
240.
}
241.
//判断模板是否存在
242.
if(!file_exists(VIEW_DIR.DS.$template.DS.$tpl_name)){
243.
err('模板文件 '.$tpl_name.' 不存在');
244.
}
245.
246.
$this->_v->assign(get_object_vars($this));
$this->_v->assign($this->_data);
247.
if($this->layout){
248.
$this->_v->assign('__template_file', $tpl_name);
249.
$tpl_name = $this->layout;
250.
}
- /www/wwwroot/zyterpharm.com/index.php on line 5
1.
<?php
2.
define('APP_DIR', realpath('./'));
3.
define('DS', DIRECTORY_SEPARATOR);
4.
define('VIEW_DIR', APP_DIR.DS.'templates');
5.
require(APP_DIR.'/include/core.php');